package egovframework.order.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
import egovframework.rte.fdl.idgnr.EgovIdGnrService;
import egovframework.order.service.OrderService;
import egovframework.com.bean.DefaultVO;
import egovframework.com.bean.OrderVO;
import egovframework.order.service.OrderDAO;

/**
 * @Class Name : TdpOrderServiceImpl.java
 * @Description : TdpOrder Business Implement class
 * @Modification Information
 *
 * @author nimbi
 * @since 2014-09-26
 * @version 1.0
 * @see
 *  
 *  Copyright (C)  All right reserved.
 */

@Service("orderService")
public class OrderServiceImpl extends EgovAbstractServiceImpl implements
        OrderService {
        
    private static final Logger LOGGER = LoggerFactory.getLogger(OrderServiceImpl.class);

    @Resource(name="orderDAO")
    private OrderDAO orderDAO;
    
    /** ID Generation */
    //@Resource(name="{egovTdpOrderIdGnrService}")    
    //private EgovIdGnrService egovIdGnrService;

	/**
	 * TDP_ORDER을 등록한다.
	 * @param vo - 등록할 정보가 담긴 TdpOrderVO
	 * @return 등록 결과
	 * @exception Exception
	 */
    public String insertTdpOrder(OrderVO vo) throws Exception {
    	LOGGER.debug(vo.toString());
    	
    	/** ID Generation Service */
    	//TODO 해당 테이블 속성에 따라 ID 제너레이션 서비스 사용
    	//String id = egovIdGnrService.getNextStringId();
    	//vo.setId(id);
    	LOGGER.debug(vo.toString());
    	
    	orderDAO.insertTdpOrder(vo);
    	//TODO 해당 테이블 정보에 맞게 수정    	
        return null;
    }

}
